home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993 April: Penguin on DISC / ADC Developer CD (1993-04) (''Penguin On DISC'')_iso / Dev.CD Apr 93.iso / Utilities / MPW Interfaces 7.1 Beta / AIncludes / SysErr.a < prev    next >
Encoding:
Text File  |  1992-08-28  |  36.8 KB  |  707 lines  |  [TEXT/MPS ]

  1. ; Version: 3.26
  2. ; Created: Friday, October 20, 1989 at 9:59:48 PM
  3. ;
  4. ; File:SysErr.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1984-1992
  8. ; All Rights Reserved
  9. ;
  10. ; System Error Equates -- This file defines the equates for the Macintosh
  11. ; return error codes This is divided into two pieces for assembly
  12. ; space and speed considerations. The wholeErrors flag is used to include
  13. ; the less common equates which realizes a complete set.
  14. ;___________________________________________________________________________
  15.  
  16.     IF &TYPE('__IncludingSysErr__') = 'UNDEFINED' THEN
  17. __IncludingSysErr__    SET    1
  18.  
  19.                   IF          (&TYPE('wholeErrors') = 'UNDEFINED') THEN
  20. wholeErrors       EQU         0
  21.                   ENDIF
  22.  
  23. noErr             EQU         0                         ; success
  24.  
  25. ;__________________________________________________
  26. ; general errors
  27.  
  28. paramErr        EQU         -50                     ; bad parameter passed
  29. noHardwareErr     EQU         -200                      ; missing the hardware to do this
  30. notEnoughHardwareErr EQU      -201                      ; inadequate hardware to do this
  31. userCanceledErr   EQU         -128                      ; user canceled the operation status
  32.  
  33. ;__________________________________________________
  34. ; VBL Mgr, queueing, etc.
  35.  
  36. qErr              EQU         -1                        ; queue element not found during deletion
  37. vTypErr           EQU         -2                        ; invalid queue element
  38. corErr            EQU         -3                        ; core routine number out of range
  39. unimpErr          EQU         -4                        ; unimplemented core routine
  40. SlpTypeErr        EQU         -5                        ; invalid queue element
  41. seNoDB            EQU         -8                        ; no debugger installed to handle debugger command
  42.  
  43. ;__________________________________________________
  44. ; Device Manager errors
  45.  
  46. controlErr        EQU         -17                       ; driver can’t respond to Control call / Unimplemented control instruction
  47. statusErr         EQU         -18                       ; driver can’t respond to Status call
  48. readErr           EQU         -19                       ; driver can’t respond to Read call
  49. writErr           EQU         -20                       ; driver can’t respond to Write call
  50. badUnitErr        EQU         -21                       ; driver reference number doesn’t match unit table
  51. unitEmptyErr      EQU         -22                       ; driver reference number specifies NIL handle in unit table
  52. openErr           EQU         -23                       ; requested read/write permission doesn’t match driver’s open permission / Attempt to open RAM serial Driver failed
  53. closErr           EQU         -24                       ; close error
  54. dRemovErr         EQU         -25                       ; tried to remove an open driver
  55. dInstErr          EQU         -26                       ; DrvrInstall couldn’t find driver in resources
  56. abortErr          EQU         -27                       ; I/O request aborted by KillIO / I/O abort error
  57. iIOAbortErr       EQU         -27                       ; I/O abort error (Printing Manager)
  58. notOpenErr        EQU         -28                       ; Couldn’t rd/wr/ctl/sts cause driver not opened
  59. unitTblFullErr    EQU         -29                       ; unit table has no more entries
  60. dceExtErr         EQU         -30                       ; DCE extension error
  61.  
  62. ; slot support
  63.  
  64. slotNumErr        EQU         -360                      ; invalid slot # error
  65. gcrOnMFMErr       EQU         -400                      ; gcr format on high density media error
  66.  
  67. ;__________________________________________________
  68. ; File Manager errors
  69.  
  70. dirFulErr         EQU         -33                       ; directory full
  71. dskFulErr         EQU         -34                       ; disk full
  72. nsvErr            EQU         -35                       ; no such volume
  73. ioErr             EQU         -36                       ; I/O error (bummers)
  74. bdNamErr          EQU         -37                       ; bad file name or volume name (perhaps zero length)
  75. fnOpnErr          EQU         -38                       ; file not open
  76. eofErr            EQU         -39                       ; logical end-of-file reached during read operation
  77. posErr            EQU         -40                       ; attempt to position to before start of file (r/w)
  78. mFulErr           EQU         -41                       ; memory full (open) or file won’t fit (load)
  79. tmfoErr           EQU         -42                       ; too many files open
  80. fnfErr            EQU         -43                       ; file not found
  81. wPrErr            EQU         -44                       ; diskette is write protected
  82. fLckdErr          EQU         -45                       ; file is locked
  83. vLckdErr          EQU         -46                       ; volume is locked
  84. fBsyErr           EQU         -47                       ; file is busy (delete)
  85. dupFNErr          EQU         -48                       ; duplicate filename (rename)
  86. opWrErr           EQU         -49                       ; file already open with with write permission
  87. rfNumErr          EQU         -51                       ; path reference number specifies nonexistent access path
  88. gfpErr            EQU         -52                       ; get file position error
  89. volOffLinErr      EQU         -53                       ; volume not on line error (was Ejected)
  90. permErr           EQU         -54                       ; permissions error (on file open) / Attempt to open locked file for writing
  91. volOnLinErr       EQU         -55                       ; drive volume already on-line at MountVol
  92. nsDrvErr          EQU         -56                       ; no such drive (tried to mount a bad drive num)
  93. noMacDskErr       EQU         -57                       ; not a mac diskette (sig bytes are wrong)
  94. extFSErr          EQU         -58                       ; volume in question belongs to an external fs
  95. fsRnErr           EQU         -59                       ; file system internal error:
  96.                                                         ;    during rename the old entry was deleted but could
  97.                                                         ;    not be restored
  98. badMDBErr         EQU         -60                       ; bad master directory block: must reinitialize volume
  99. wrPermErr         EQU         -61                       ; Read/write permission doesn’t allow writing
  100.  
  101. ; errors introduced with HFS
  102.  
  103. dirNFErr          EQU         -120                      ; directory not found
  104. tmwdoErr          EQU         -121                      ; no free WDCB available
  105. badMovErr         EQU         -122                      ; move into offspring error
  106. wrgVolTypErr      EQU         -123                      ; wrong volume type error
  107. volGoneErr        EQU         -124                      ; server volume has been disconnected
  108.  
  109. ; error codes -1300 to -1500 reserved for HFS calls                                 <1.7 DNF>
  110.  
  111. fidNotFound       EQU         -1300                     ; no file thread exists         <1.7 DNF>
  112. fidExists         EQU         -1301                     ; file id already exists        <1.7 DNF>
  113. notAFileErr       EQU         -1302                     ; directory specified            <1.7 DNF>
  114. diffVolErr        EQU         -1303                     ; files  on different volumes    <1.8 EKN>
  115. catChangedErr     EQU         -1304                     ; catalog has been modified     <2.2 DNF>
  116. desktopDamagedErr    EQU        -1305                    ; desktop database files are corrupted
  117. sameFileErr        EQU            -1306                    ; can't exachange a file with itself
  118. badFidErr         EQU         -1307                     ; file id is dangling or doesn't <20 KST>
  119.                                                     ; match with the file number
  120. notARemountErr    EQU            -1308                    ; when _Mount allows only remounts and doesn't
  121.                                                     ; get one. <27>
  122.  
  123. ;__________________________________________________
  124. ; SysEnvirons errors
  125.  
  126. envNotPresent     EQU         -5500                     ; returned by glue environment not present.
  127. envBadVers        EQU         -5501                     ; Version non-positive , bad version number
  128. envVersTooBig     EQU         -5502                     ; Version bigger than call can handle
  129.  
  130. ;__________________________________________________
  131. ; Font Manager errors
  132.  
  133. fontDecError      EQU         -64                       ; error during font declaration
  134. fontNotDeclared EQU         -65                       ; font not declared
  135. fontSubErr        EQU         -66                       ; font substitution occured
  136. fontNotOutlineErr EQU        -32615                    ; bitmap font passed to routine that does outlines only
  137.  
  138. ;__________________________________________________
  139. ; Disk Driver errors
  140.  
  141. firstDskErr       EQU         -84
  142. lastDskErr        EQU         -64
  143. noDriveErr        EQU         -64                       ; drive not installed
  144. offLinErr         EQU         -65                       ; r/w requested for an off-line drive
  145. noNybErr          EQU         -66                       ; couldn’t find 5 nybbles in 200 tries
  146. noAdrMkErr        EQU         -67                       ; couldn’t find valid addr mark
  147. dataVerErr        EQU         -68                       ; read verify compare failed
  148. badCksmErr        EQU         -69                       ; addr mark checksum didn’t check
  149. badBtSlpErr       EQU         -70                       ; bad addr mark bit slip nibbles
  150. noDtaMkErr        EQU         -71                       ; couldn’t find a data mark header
  151. badDCksum         EQU         -72                       ; bad data mark checksum
  152. badDBtSlp         EQU         -73                       ; bad data mark bit slip nibbles
  153. wrUnderrun        EQU         -74                       ; write underrun occurred
  154. cantStepErr       EQU         -75                       ; step handshake failed
  155. tk0BadErr         EQU         -76                       ; track 0 detect doesn’t change
  156. initIWMErr        EQU         -77                       ; unable to initialize IWM
  157. twoSideErr        EQU         -78                       ; tried to read 2nd side on a 1-sided drive
  158. spdAdjErr         EQU         -79                       ; unable to correctly adjust disk speed
  159. seekErr           EQU         -80                       ; track number wrong on address mark
  160. sectNFErr         EQU         -81                       ; sector number never found on a track
  161. fmt1Err           EQU         -82                       ; can’t find sector 0 after track format
  162. fmt2Err           EQU         -83                       ; can’t get enough sync
  163. verErr            EQU         -84                       ; track failed to verify
  164.  
  165. ;__________________________________________________
  166. ; PRAM/Clock errors
  167.  
  168. clkRdErr          EQU         -85                       ; unable to read same clock value twice
  169. clkWrErr          EQU         -86                       ; time written did not verify
  170. prWrErr           EQU         -87                       ; parameter ram written didn’t read-verify
  171. prInitErr         EQU         -88                       ; InitUtil found the parameter ram uninitialized
  172.  
  173. ;__________________________________________________
  174. ; Serial Driver errors
  175.  
  176. rcvrErr           EQU         -89                       ; SCC receiver error (framing, parity, OR)
  177. breakRecd         EQU         -90                       ; Break received (SCC)
  178.  
  179. ;__________________________________________________
  180. ; Power Manager Errors
  181.  
  182. pmBusyErr         EQU         -13000                    ; Power Mgr never ready to start handshake
  183. pmReplyTOErr      EQU         -13001                    ; Timed out waiting for reply
  184. pmSendStartErr    EQU         -13002                    ; during send, pmgr did not start hs
  185. pmSendEndErr      EQU         -13003                    ; during send, pmgr did not finish hs
  186. pmRecvStartErr    EQU         -13004                    ; during receive, pmgr did not start hs
  187. pmRecvEndErr      EQU         -13005                    ; during receive, pmgr did not finish hs
  188.                                                         ; configured for this connection)
  189. ;__________________________________________________
  190. ; Scrap Manager errors
  191.  
  192. noScrapErr        EQU         -100                      ; No scrap exists error
  193. noTypeErr         EQU         -102                      ; No object of that type in scrap
  194.  
  195. ;__________________________________________________
  196. ; Memory Manager errors
  197.  
  198. memROZWarn        EQU         -99                       ; soft error in ROZ
  199. memROZError       EQU         -99                       ; hard error in ROZ
  200. memROZErr         EQU         -99                       ; hard error in ROZ
  201. memFullErr        EQU         -108                      ; Not enough room in heap zone
  202. nilHandleErr      EQU         -109                      ; Handle was NIL in HandleZone or other;
  203. memWZErr          EQU         -111                      ; WhichZone failed (applied to free block);
  204. memPurErr         EQU         -112                      ; trying to purge a locked or non-purgeable block;
  205. memAdrErr         EQU         -110                      ; address was odd, or out of range;
  206. memAZErr          EQU         -113                      ; Address in zone check failed;
  207. memPCErr          EQU         -114                      ; Pointer Check failed;
  208. memBCErr          EQU         -115                      ; Block Check failed;
  209. memSCErr          EQU         -116                      ; Size Check failed;
  210. memLockedErr      EQU         -117                      ; trying to move a locked block (MoveHHi)
  211.  
  212. ;__________________________________________________
  213. ; Resource Manager errors
  214.  
  215. resNotFound       EQU         -192                      ; resource not found
  216. resFNotFound      EQU         -193                      ; resource file not found
  217. addResFailed      EQU         -194                      ; AddResource failed
  218. addRefFailed      EQU         -195                      ; AddReference failed
  219. rmvResFailed      EQU         -196                      ; RmveResource failed
  220. rmvRefFailed      EQU         -197                      ; RmveReference failed
  221. resAttrErr        EQU         -198                      ; attribute inconsistent with operation
  222. mapReadErr        EQU         -199                      ; map inconsistent with operation
  223. CantDecompress    EQU            -186                    ; resource bent ("the bends") - can't decompress a compressed resource
  224. badExtResource    EQU            -185                    ; extended resource has a bad format.
  225.  
  226. ;__________________________________________________
  227. ; Event Manager errors
  228.  
  229. evtNotEnb         EQU         1                         ; event not enabled at PostEvent
  230.  
  231. ;__________________________________________________
  232. ; QuickDraw errors
  233.  
  234. noMemForPictPlaybackErr EQU            -145
  235. rgnTooBigError             EQU            -147
  236. pixMapTooDeepErr        EQU            -148
  237. nsStackErr                 EQU            -149            ; insufficient stack
  238. cMatchErr                 EQU         -150              ; Color2Index failed to find an index
  239. cTempMemErr               EQU         -151              ; failed to allocate memory for temporary structures
  240. cNoMemErr                 EQU         -152              ; failed to allocate memory for structure
  241. cRangeErr                 EQU         -153              ; range error on color table request
  242. cProtectErr               EQU         -154              ; colorTable entry protection violation
  243. cDevErr                   EQU         -155              ; invalid type of graphics device
  244. cResErr                   EQU         -156              ; invalid resolution for MakeITable
  245. rgnTooBigErr              EQU         -500              ; region too big error
  246. updPixMemErr              EQU         -125              ; insufficient memory to update a pixmap
  247. ;cDepthErr                 EQU         -157      defined in QDOffscreen ; invalid pixel depth
  248. AbortPicPlayBackErr        EQU            -158            ;signature to abort pic playback
  249.  
  250. ;__________________________________________________
  251. ; Picture Utilities errors
  252.  
  253. pictInfoVersionErr        EQU  -11000                    ;wrong version of the PictInfo structure
  254. pictInfoIDErr            EQU  -11001                    ;the internal consistancy check for the PictInfoID is wrong
  255. pictInfoVerbErr            EQU  -11002                    ;the passed verb was invalid
  256. cantLoadPickMethodErr    EQU  -11003                    ;unable to load the custom pick proc
  257. colorsRequestedErr        EQU  -11004                    ;the number of colors requested was illegal
  258. pictureDataErr            EQU  -11005                    ;the picture data was invalid
  259.  
  260. ;__________________________________________________
  261. ; Sound Manager errors
  262.  
  263. noHardware                EQU    noHardwareErr             ; *** obsolete spelling
  264. notEnoughHardware         EQU notEnoughHardwareErr      ; *** obsolete spelling
  265. queueFull                 EQU -203
  266. resProblem                EQU -204
  267. badChannel                EQU -205
  268. badFormat                 EQU -206
  269. notEnoughBufferSpace     EQU -207                    ; could not allocate enough memory
  270. badFileFormat               EQU -208                    ; was not type AIFF or was of bad format,corrupt
  271. channelBusy               EQU -209                    ; the channel is being used for a PFD already
  272. buffersTooSmall           EQU -210                    ; can not operate in the memory allowed
  273. channelNotBusy               EQU -211
  274. noMoreRealTime              EQU -212                    ; not enough CPU cycles left to add another task
  275. siNoSoundInHardware        EQU -220
  276. siBadSoundInDevice        EQU -221                    ; invalid index passed to SoundInGetIndexedDevice
  277. siNoBufferSpecified        EQU -222                    ; returned by synchronous SPBRecord if nil buffer passed
  278. siInvalidCompression    EQU -223                    ; invalid compression type
  279. siHardDriveTooSlow        EQU -224                    ; hard drive too slow to record to disk
  280. siInvalidSampleRate        EQU -225                    ; invalid sample rate
  281. siInvalidSampleSize        EQU -226                    ; invalid sample size
  282. siDeviceBusyErr            EQU -227                    ; input device already in use
  283. siBadDeviceName            EQU -228                    ; input device could not be opened
  284. siBadRefNum                EQU -229                    ; invalid input device reference number
  285. siInputDeviceErr        EQU -230                    ; input device hardware failure
  286. siUnknownInfoType        EQU -231                    ; invalid info type selector (returned by driver)
  287. siUnknownQuality        EQU -232                    ; invalid quality selector (returned by driver)
  288.  
  289. ;__________________________________________________
  290. ; Notification Manager errors
  291.  
  292. nmTypErr          EQU         -299                      ; wrong queue type
  293.  
  294. ;__________________________________________________
  295. ; Slot Manager errors *** Yuck! These use positive numbers! ***
  296.  
  297. siInitSDTblErr    EQU         1                         ; slot int dispatch table could not be initialized.
  298. siInitVBLQsErr    EQU         2                         ; VBL queues for all slots could not be initialized.
  299. siInitSPTblErr    EQU         3                         ; slot priority table could not be initialized.
  300. sdmJTInitErr      EQU         10                        ; SDM Jump Table could not be initialized.
  301. sdmInitErr        EQU         11                        ; SDM could not be initialized.
  302. sdmSRTInitErr     EQU         12                        ; Slot Resource Table could not be initialized.
  303. sdmPRAMInitErr    EQU         13                        ; Slot PRAM could not be initialized.
  304. sdmPriInitErr     EQU         14                        ; cards could not be initialized.
  305.  
  306. ;---The following errors may be generated during system Init. If they are,
  307. ; they will be logged into the sInfo array and returned each time a call
  308. ; to the slot manager is made (for the card wich generated the error).
  309.  
  310. ; Errors specific to the Start Mgr
  311.  
  312. smSDMInitErr      EQU         -290                      ; SDM could not be initialized.
  313. smSRTInitErr      EQU         -291                      ; Slot Resource Table could not be initialized.
  314. smPRAMInitErr     EQU         -292                      ; Slot Resource Table could not be initialized.
  315. smPriInitErr      EQU         -293                      ; cards could not be initialized.
  316. smEmptySlot       EQU         -300                      ; No card in slot
  317. smCRCFail         EQU         -301                      ; CRC check failed for declaration data
  318. smFormatErr       EQU         -302                      ; FHeader Format is not Apple's
  319. smRevisionErr     EQU         -303                      ; Wrong revison level
  320. smNoDir           EQU         -304                      ; Directory offset is Nil
  321. smDisabledSlot    EQU         -305                      ; This slot is disabled (-305 use to be smLWTstBad)        <12>
  322. smNosInfoArray    EQU         -306                      ; No sInfoArray. Memory Mgr error.
  323. smResrvErr        EQU         -307                      ; Fatal reserved error. Resreved field <> 0.
  324. smUnExBusErr      EQU         -308                      ; Unexpected BusError
  325. smBLFieldBad      EQU         -309                      ; ByteLanes field was bad.
  326. smFHBlockRdErr    EQU         -310                      ; Error occured during _sGetFHeader.
  327. smFHBlkDispErr    EQU         -311                      ; Error occured during _sDisposePtr (Dispose of FHeader block).
  328. smDisposePErr     EQU         -312                      ; _DisposePointer error
  329. smNoBoardSRsrc    EQU         -313                      ; No Board sResource.
  330. smGetPRErr        EQU         -314                      ; Error occured during _sGetPRAMRec (See SIMStatus).
  331. smNoBoardId       EQU         -315                      ; No Board Id.
  332. smInitStatVErr    EQU         -316                      ; The InitStatusV field was negative after primary or secondary init.
  333. smInitTblVErr     EQU         -317                      ; An error occured while trying to initialize the Slot Resource Table.
  334. smReservedSlot    EQU         -318                      ; slot is reserved, VM should not use this address space.  <35> rb
  335. smBadBoardId      EQU         -319                      ; BoardId was wrong, re-init the PRAM record
  336. smBusErrTO        EQU         -320                      ; BusError timeout
  337.  
  338. ;---The following errors are for primary or secondary init code.  The errors are logged in the
  339. ; vendor status field of the sInfo record.    Normally the vendor error is not Apple's concern,
  340. ; but a special error is needed to patch secondary inits.
  341.  
  342. svTempDisable     EQU         -32768                    ; temporarily disable card but run primary init
  343. svDisabled        EQU         -32640                    ; reserve range -32640 to -32768 for Apple temp disables
  344.  
  345. ;---The following errors may be generated at any time after system Init and will not
  346. ; be logged into the sInfo array.
  347.  
  348. smBadRefId        EQU         -330                      ; Reference Id not found in List
  349. smBadsList        EQU         -331                      ; Bad sList: Id1 < Id2 < Id3 ... format is not followed.
  350. smReservedErr     EQU         -332                      ; Reserved field not zero
  351. smCodeRevErr      EQU         -333                      ; Code revision is wrong
  352. smCPUErr          EQU         -334                      ; Code revision is wrong
  353. smsPointerNil     EQU         -335                      ; LPointer is nil {From sOffsetData. If this error occurs, check sInfo rec for more information.}
  354. smNilsBlockErr    EQU         -336                      ; Nil sBlock error {Dont allocate and try to use a nil sBlock}
  355. smSlotOOBErr      EQU         -337                      ; Slot out of bounds error
  356. smSelOOBErr       EQU         -338                      ; Selector out of bounds error
  357. smNewPErr         EQU         -339                      ; _NewPtr error
  358. smBlkMoveErr      EQU         -340                      ; _BlockMove error
  359. smCkStatusErr     EQU         -341                      ; Status of slot = fail.
  360. smGetDrvrNamErr EQU         -342                      ; Error occured during _sGetDrvrName.
  361. smDisDrvrNamErr EQU         -343                      ; Error occured during _sDisDrvrName.
  362. smNoMoresRsrcs    EQU         -344                      ; No more sResources
  363. smsGetDrvrErr     EQU         -345                      ; Error occurred during _sGetDriver.
  364. smBadsPtrErr      EQU         -346                      ; Bad pointer was passed to sCalcsPointer
  365. smByteLanesErr    EQU         -347                      ; NumByteLanes was determined to be zero.
  366. smOffsetErr       EQU         -348                      ; Offset was too big (temporary error, should be fixed)
  367. smNoGoodOpens     EQU         -349                      ; No opens were successfull in the loop.
  368. smSRTOvrFlErr     EQU         -350                      ; SRT over flow.
  369. smRecNotFnd       EQU         -351                      ; Record not found in the SRT.
  370.  
  371. ;__________________________________________________
  372. ; Edition Mgr errors
  373.  
  374. editionMgrInitErr         EQU    -450                    ; edition manager not inited by this app
  375. badSectionErr             EQU    -451                    ; not a valid SectionRecord
  376. notRegisteredSectionErr EQU    -452                    ; not a registered SectionRecord
  377. badEditionFileErr         EQU    -453                    ; edition file is corrupt
  378. badSubPartErr             EQU    -454                    ; can not use sub parts in this release
  379. multiplePublisherWrn     EQU    -460                    ; A Publisher is already registered for that container
  380. containerNotFoundWrn     EQU    -461                    ; could not find editionContainer at this time
  381. containerAlreadyOpenWrn EQU    -462                    ; container already opened by this section
  382. notThePublisherWrn         EQU -463                     ; not the publisher that last wrote to that container
  383.  
  384. ;__________________________________________________
  385. ; TextEdit errors
  386.  
  387. teScrapSizeErr    EQU         -501                      ; scrap item too big for text edit record
  388.  
  389. ;__________________________________________________
  390. ; other OS errors
  391.  
  392. hwParamErr         EQU         -502                    ; bad selector for _HWPriv <1.3>
  393.  
  394. ;__________________________________________________
  395. ; Process Manager errors
  396.  
  397. procNotFound        EQU        -600                    ; no eligible process with specified descriptor
  398. memFragErr            EQU        -601                    ; not enough room to launch app w/special requirements
  399. appModeErr            EQU        -602                    ; memory mode is 32-bit, but app not 32-bit clean
  400. protocolErr            EQU        -603                    ; app made module calls in improper order
  401. hardwareConfigErr    EQU        -604                    ; hardware configuration not correct for call
  402. appMemFullErr        EQU        -605                    ; application SIZE not big enough for launch
  403. appIsDaemon            EQU        -606                    ; app is BG-only, and launch flags disallow this
  404.  
  405. ;__________________________________________________
  406. ; MemoryDispatch errors
  407.  
  408. notEnoughMemoryErr    EQU        -620                    ; insufficient physical memory                <1.4>
  409. notHeldErr            EQU        -621                    ; specified range of memory is not held        <1.4>
  410. cannotMakeContiguousErr EQU    -622                    ; cannot make specified range contiguous    <1.4>
  411. notLockedErr        EQU        -623                    ; specified range of memory is not locked    <1.4>
  412. interruptsMaskedErr    EQU        -624                    ; don’t call with interrupts masked            <1.4>
  413. cannotDeferErr        EQU        -625                    ; unable to defer additional functions        <1.4>
  414.  
  415. ;__________________________________________________
  416. ; AppleTalk errors
  417.  
  418. ddpSktErr         EQU         -91                       ; error in socket number
  419. ddpLenErr         EQU         -92                       ; data length too big
  420. noBridgeErr       EQU         -93                       ; no network bridge for non-local send
  421. lapProtErr        EQU         -94                       ; error in attaching/detaching protocol
  422. excessCollsns     EQU         -95                       ; excessive collisions on write
  423. portInUse         EQU         -97                       ; driver Open error code (port is in use)
  424. portNotCf         EQU         -98                       ; driver Open error code (parameter RAM not
  425.  
  426. ; AppleTalk - NBP errors
  427.  
  428. nbpBuffOvr        EQU         -1024                     ; Buffer overflow in LookupName
  429. nbpNoConfirm      EQU         -1025                     ; Name not confirmed on ConfirmName
  430. nbpConfDiff       EQU         -1026                     ; Name confirmed at different socket
  431. nbpDuplicate      EQU         -1027                     ; Duplicate name exists already
  432. nbpNotFound       EQU         -1028                     ; Name not found on remove
  433. nbpNISErr         EQU         -1029                     ; Error trying to open the NIS
  434.  
  435. ; ASP errors (.XPP driver)
  436.  
  437. aspBadVersNum     EQU         -1066                     ; Server cannot support this ASP version
  438. aspBufTooSmall    EQU         -1067                     ; Buffer too small
  439. aspNoMoreSess     EQU         -1068                     ; No more sessions on server
  440. aspNoServers      EQU         -1069                     ; No servers at that address
  441. aspParamErr       EQU         -1070                     ; Parameter error
  442. aspServerBusy     EQU         -1071                     ; Server cannot open another session
  443. aspSessClosed     EQU         -1072                     ; Session closed
  444. aspSizeErr        EQU         -1073                     ; Command block too big
  445. aspTooMany        EQU         -1074                     ; Too many clients (server error)
  446. aspNoAck          EQU         -1075                     ; No ack on attention request (server err)
  447.  
  448. ;AppleTalk - ATP errors
  449.  
  450. reqFailed         EQU         -1096                     ; SendRequest failed: retry count exceeded
  451. tooManyReqs       EQU         -1097                     ; Too many concurrent requests
  452. tooManySkts       EQU         -1098                     ; Too many concurrent responding-sockets
  453. badATPSkt         EQU         -1099                     ; Bad ATP-responding socket
  454. badBuffNum        EQU         -1100                     ; Bad response buffer number specififed
  455. noRelErr          EQU         -1101                     ; No release received
  456. cbNotFound        EQU         -1102                     ; Control Block (TCB or RspCB) not found
  457. noSendResp        EQU         -1103                     ; AddResponse issued without SendResponse
  458. noDataArea        EQU         -1104                     ; No data area for request to MPP
  459. reqAborted        EQU         -1105                     ; SendRequest aborted by RelTCB
  460. buf2SmallErr      EQU         -3101                     ; buffer too small error
  461. noMPPErr          EQU         -3102                     ; no MPP error
  462. ckSumErr          EQU         -3103                     ; check sum error
  463. extractErr        EQU         -3104                     ; extraction error
  464. readQErr          EQU         -3105                     ; read queue error
  465. atpLenErr         EQU         -3106                     ; ATP length error
  466. atpBadRsp         EQU         -3107                     ; ATP bad response error
  467. recNotFnd         EQU         -3108                     ; Record not found
  468. sktClosedErr      EQU         -3109                     ; Socket closed error
  469.  
  470. ; AFP errors (.XPP driver)
  471.  
  472. afpAccessDenied    EQU         -5000                     ; AFP access denied
  473. afpAuthContinue    EQU         -5001                     ; AFP authorization continue
  474. afpBadUAM         EQU         -5002                     ; AFP bad UAM
  475. afpBadVersNum     EQU         -5003                     ; AFP bad version number
  476. afpBitmapErr      EQU         -5004                     ; AFP bit map error
  477. afpCantMove       EQU         -5005                     ; AFP can't move error
  478. afpDenyConflict    EQU         -5006                     ; AFP deny conflict
  479. afpDirNotEmpty    EQU         -5007                     ; AFP dir not empty
  480. afpDiskFull       EQU         -5008                     ; AFP disk full
  481. afpEofError       EQU         -5009                     ; AFP End-of-File error
  482. afpFileBusy       EQU         -5010                     ; AFP file busy
  483. afpFlatVol        EQU         -5011                     ; AFP flat volume
  484. afpItemNotFound    EQU         -5012                     ; AFP item not found
  485. afpLockErr        EQU         -5013                     ; AFP lock error
  486. afpMiscErr        EQU         -5014                     ; AFP misc error
  487. afpNoMoreLocks    EQU         -5015                     ; AFP no more locks
  488. afpNoServer       EQU         -5016                     ; AFP no server
  489. afpObjectExists    EQU         -5017                     ; AFP object already exists
  490. afpObjectNotFound EQU         -5018                     ; AFP object not found
  491. afpParmErr        EQU         -5019                     ; AFP parm error
  492. afpRangeNotLocked EQU         -5020                     ; AFP range not locked
  493. afpRangeOverlap    EQU         -5021                     ; AFP range overlap
  494. afpSessClosed     EQU         -5022                     ; AFP session closed
  495. afpUserNotAuth    EQU         -5023                     ; AFP user not authorized
  496. afpCallNotSupported EQU       -5024                     ; AFP call not supported
  497. afpObjectTypeErr  EQU         -5025                     ; AFP object type error
  498. afpTooManyFilesOpen EQU       -5026                     ; AFP too many files open
  499. afpServerGoingDown EQU        -5027                     ; AFP server going down
  500. afpCantRename     EQU         -5028                     ; AFP can't rename
  501. afpDirNotFound    EQU         -5029                     ; AFP directory not found
  502. afpIconTypeError  EQU         -5030                     ; AFP icon type error
  503. afpVolLocked      EQU         -5031                     ; Volume is Read-Only
  504. afpObjectLocked    EQU         -5032                     ; Object is M/R/D/W inhibited
  505. afpContainsSharedErr EQU     -5033                     ;$FFFFEC57 the folder being shared contains a shared folder }
  506. afpIDNotFound    EQU         -5034                     ;$FFFFEC56
  507. afpIDExists         EQU         -5035                     ;$FFFFEC55
  508. afpDiffVolErr    EQU         -5036                     ;$FFFFEC54
  509. afpCatalogChanged EQU         -5037                     ;$FFFFEC53
  510. afpSameObjectErr EQU         -5038                     ;$FFFFEC52
  511. afpBadIDErr         EQU         -5039                     ;$FFFFEC51
  512. afpPwdSameErr    EQU         -5040                     ;$FFFFEC50 someone tried to change their password to the same password on a mantadory password change
  513. afpPwdTooShortErr EQU         -5041                     ;$FFFFEC4F the password being set is too short: there is a minimum length that must be met or exceeded
  514. afpPwdExpiredErr EQU         -5042                     ;$FFFFEC4E the password being used is too old: this requires the user to change the password before log-in can continue
  515. afpInsideSharedErr EQU         -5043                     ;$FFFFEC4D the folder being shared is inside a shared folder OR
  516.                                                       ;           the folder contains a shared folder and is being moved into a shared folder OR
  517.                                                     ;           the folder contains a shared folder and is being moved into the descendent of a shared folder.
  518. afpInsideTrashErr EQU         -5044                     ;$FFFFEC4C the folder being shared is inside the trash folder OR
  519.                                                     ;           the shared folder is being moved into the trash folder OR
  520.                                                     ;           the folder is being moved to the trash and it contains a shared folder
  521.  
  522. ;__________________________________________________
  523. ; PPC errors
  524.  
  525. notInitErr        EQU         -900                    ; PPCToolBox not initialized
  526.  
  527. nameTypeErr        EQU         -902                    ; Invalid or inappropriate locationKindSelector in locationName
  528. noPortErr        EQU         -903                    ; Unable to open port or bad portRefNum
  529. noGlobalsErr    EQU         -904                    ; The system is hosed, better re-boot
  530. localOnlyErr    EQU         -905                    ; Network activity is currently disabled
  531. destPortErr        EQU         -906                    ; Port does not exist at destination
  532. sessTableErr    EQU         -907                    ; Out of session tables, try again later
  533. noSessionErr    EQU         -908                    ; Invalid session reference number
  534. badReqErr        EQU         -909                    ; bad parameter or invalid state for operation
  535. portNameExistsErr EQU         -910                    ; port is already open (perhaps in another app)
  536. noUserNameErr    EQU         -911                    ; user name unknown on destination machine
  537. userRejectErr    EQU         -912                    ; Destination rejected the session request
  538. noMachineNameErr EQU         -913                    ; user hasn't named his Macintosh in the Network Setup Control Pannel
  539. noToolboxNameErr EQU         -914                    ; A system resource is missing, not too likely
  540. noResponseErr    EQU         -915                    ; unable to contact destination
  541. portClosedErr    EQU         -916                    ; port was closed
  542. sessClosedErr    EQU         -917                    ; session was closed
  543.  
  544. badPortNameErr    EQU         -919                    ; PPCPortRec malformed
  545.  
  546. noDefaultUserErr EQU         -922                    ; user hasn't typed in owners name in Network Setup Control Pannel
  547. notLoggedInErr    EQU         -923                    ; The default userRefNum does not yet exist
  548. noUserRefErr    EQU         -924                    ; unable to create a new userRefNum
  549. networkErr        EQU         -925                    ; An error has occured in the network, not too likely
  550. noInformErr        EQU         -926                    ; PPCStart failed because destination did not have inform pending
  551. authFailErr        EQU         -927                    ; unable to authenticate user at destination
  552. noUserRecErr    EQU         -928                    ; Invalid user reference number
  553.  
  554. badServiceMethodErr EQU     -930                    ; illegal service type, or not supported
  555. badLocNameErr    EQU         -931                    ; location name malformed
  556. guestNotAllowedErr EQU         -932                    ; destination port requires authentication
  557.  
  558. ;____________________________________________________________________________________________________
  559.  
  560.                   IF          wholeErrors THEN
  561.  
  562. ;__________________________________________________
  563. ; Serial Driver error masks
  564.  
  565. swOverrunErr      EQU         1
  566. parityErr         EQU         16
  567. hwOverrunErr      EQU         32
  568. framingErr        EQU         64
  569.  
  570. ;____________________________________________________________________________________________________
  571. ;
  572. ; These are System Errors. They use a different numbering space from the OS errors above, so there
  573. ; can be a System Error and an OS error with the same number. System Errors are intercepted by
  574. ; MacsBug or displayed by the System Error Handler, which uses a DSAT resource to determine how to
  575. ; display them. Some errors are used to put up dialogs with the System Error Handler, rather than to
  576. ; report an error. These are not intercepted by MacsBug. MacsBug’s rule is to stop any system errors
  577. ; with positive numbers, except for errors 30 and 42. Older versions of MacsBug (6.2d4 and older)
  578. ; used a different rule.
  579.  
  580. ;__________________________________________________
  581. ; System Errors that should cause MacsBug to stop (0-29, 31-41, 43-16383)
  582. ;    and look good in the System Error alert because they are in the range 0-29, 31-41, or 43-99
  583.  
  584. dsBusError        EQU         1                         ; bus error
  585. dsAddressErr      EQU         2                         ; address error
  586. dsIllInstErr      EQU         3                         ; illegal instruction error
  587. dsZeroDivErr      EQU         4                         ; zero divide error
  588. dsChkErr          EQU         5                         ; check trap error
  589. dsOvflowErr       EQU         6                         ; overflow trap error
  590. dsPrivErr         EQU         7                         ; privilege violation error
  591. dsTraceErr        EQU         8                         ; trace mode error
  592. dsLineAErr        EQU         9                         ; line 1010 trap error
  593. dsLineFErr        EQU         10                        ; line 1111 trap error
  594. dsMiscErr         EQU         11                        ; miscellaneous hardware exception error
  595. dsCoreErr         EQU         12                        ; unimplemented core routine error
  596. dsIrqErr          EQU         13                        ; uninstalled interrupt error
  597. dsIOCoreErr       EQU         14                        ; I/O core error
  598. dsLoadErr         EQU         15                        ; Segment Loader error
  599. dsFPErr           EQU         16                        ; floating point error
  600. dsNoPackErr       EQU         17                        ; package 0 not present
  601. dsNoPk1           EQU         18                        ; package 1 not present
  602. dsNoPk2           EQU         19                        ; package 2 not present
  603. dsNoPk3           EQU         20                        ; package 3 not present
  604. dsNoPk4           EQU         21                        ; package 4 not present
  605. dsNoPk5           EQU         22                        ; package 5 not present
  606. dsNoPk6           EQU         23                        ; package 6 not present
  607. dsNoPk7           EQU         24                        ; package 7 not present
  608. dsMemFullErr      EQU         25                        ; out of memory
  609. dsBadLaunch       EQU         26                        ; can’t launch file (CODE 0 missing or ...)
  610. dsFSErr           EQU         27                        ; file system map has been trashed
  611. dsStknHeap        EQU         28                        ; stack has moved into application heap
  612. negZcbFreeErr     EQU         33                        ; zcbFree has gone negative
  613. dsFinderErr       EQU         41                        ; can’t load the Finder
  614. dsBadSlotInt      EQU         51                        ; unserviceable slot interrupt
  615. dsBadSANEOpcode    EQU         81                        ; bad opcode given to SANE
  616. dsBadPatchHeader EQU        83                        ; SetTrapAddress saw the “come-from” header
  617. menuPrgErr        EQU         84                        ; a menu was purged while in use
  618. dsMBarNFnd        EQU         85                        ; could not load MBDF
  619. dsHMenuFindErr    EQU         86                        ; could not find HMenu’s parent in MenuKey
  620. dsWDEFNotFound    EQU            87                        ; could not load WDEF
  621. dsCDEFNotFound    EQU            88                        ; could not load CDEF
  622. dsMDEFNotFound    EQU            89                        ; count not load MDEF
  623. dsNoFPU               EQU         90                       ; an FPU instruction was executed and the machine doesn’t have one
  624.  
  625. ;__________________________________________________
  626. ; System Errors that should cause MacsBug to stop (0-29, 31-41, 43-16383)
  627. ;    these look good in the System Error alert because of special templates in the DSAT
  628.  
  629. dsNoPatch         EQU         98                        ; can’t load patch for particular model
  630. dsBadPatch        EQU         99                        ; can’t load patch resource
  631. dsParityErr       EQU         101                       ; memory parity error                <1.5><1.6>
  632. dsOldSystem       EQU         102                       ; System is too old for this ROM    <2.0>
  633. ds32BitMode       EQU         103                       ; booting in 32-bit on a 24-bit sys <2.0>
  634. dsNeedToWriteBootBlocks    EQU    104                        ; need to write new boot blocks
  635. dsNotEnoughRAMToBoot    EQU    105                        ; must have at least 1.5MB of RAM to boot 7.0
  636.  
  637. ;__________________________________________________
  638. ; System Errors that should not cause MacsBug to stop (30, 42, 16384-32767)
  639. ;    these all have special templates in the DSAT
  640. ;    if you need to make new errors of this type, use numbers from 20000 up.
  641.  
  642. dsReinsert        EQU         30                        ; request user to reinsert off-line volume
  643.  
  644. shutDownAlert          EQU     42                        ; tell the user he can shut down his machine
  645. dsShutDownOrRestart     EQU       20000                     ; user choice between ShutDown and Restart
  646. dsSwitchOffOrRestart EQU      20001                     ; user choice between switching off and Restart
  647. dsForcedQuit         EQU    20002                    ; allow the user to ExitToShell, return if Cancel
  648. dsSCSIWarn             EQU    20010                    ; Portable SCSI adapter warning.                    <34>
  649.  
  650. ;__________________________________________________
  651. ; System Errors that are used after MacsBug is loaded to put up dialogs
  652. ;    since these should not cause MacsBug to stop, they must be in the range (30, 42, 16384-32767)
  653. ;    negative numbers add to an existing dialog without putting up a whole new dialog
  654.  
  655. dsMacsBugInstalled         EQU        -10                   ; say “MacsBug Installed”
  656. dsDisassemblerInstalled    EQU        -11                   ; say “Disassembler Installed”
  657. dsExtensionsDisabled    EQU        -13                    ; say “Extensions Disabled”
  658.  
  659. ;__________________________________________________
  660. ; System Errors that are used before MacsBug is loaded to put up dialogs
  661. ;    MacsBug does not have to special-case these, since it is not loaded yet!
  662. ;    negative numbers add to an existing dialog without putting up a whole new dialog
  663.  
  664. dsGreeting        EQU         40                        ; welcome to Macintosh greeting
  665.  
  666. ;__________________________________________________
  667. ; System Errors that are never actually generated
  668. ;    *** do not pass any of these to SysErr ***
  669.  
  670. dsSysErr          EQU         32767                     ; catch-all error used in DSAT
  671.  
  672. ;__________________________________________________
  673. ; old names here for compatibility’s sake
  674.  
  675. WDEFNFnd        EQU         dsWDEFNotFound
  676. CDEFNFnd        EQU         dsCDEFNotFound
  677.  
  678. ;__________________________________________________
  679. ; obsolete System Errors that are no longer used, but I don’t have the guts to remove from this file
  680.  
  681. dsNotThe1         EQU         31                        ; not the disk I wanted
  682. dsBadStartupDisk  EQU         42                        ; unable to mount boot volume (sad Mac only)
  683. dsSystemFileErr   EQU         43                        ; can’t find System file to open (sad Mac only)
  684. dsHD20Installed   EQU         -12                       ; say “HD20 Startup”
  685. mBarNFnd          EQU         -126                      ; *** replaced by dsMBarNFnd
  686. hMenuFindErr      EQU         -127                      ; *** replaced by dsHMenuFindErr
  687.  
  688. ;__________________________________________________
  689. ; System Errors
  690.  
  691. userBreak         EQU         -490                      ; debugger break
  692. strUserBreak      EQU         -491                      ; debugger break; display string on stack
  693. exUserBreak       EQU         -492                      ; debugger break; debugger commands on stack
  694.  
  695. ;____________________________________________________________________________________________________
  696.  
  697.                   ENDIF
  698.  
  699. ;____________________________________________________________________________________________________
  700. ; obsolete errors that are no longer used, but I don’t have the guts to remove from this file
  701.  
  702. selectorErr        EQU            paramErr                ; bad selector, for selector-based traps
  703.  
  704. ;____________________________________________________________________________________________________
  705.  
  706.     ENDIF    ; ...already included
  707.